package com.moto.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.moto.entity.MotoUser;
import com.moto.repository.MotoUserRepository;
import com.moto.service.MotoUserService;


@Service("motoUserService")
public class MotoUserServiceImpl implements MotoUserService {
	private static final Logger LOG = LoggerFactory.getLogger(MotoUserServiceImpl.class);
	
	@Autowired
	private MotoUserRepository motoUserRepository;
	
	@Override
	public MotoUser getUser(String userId) {
		LOG.info("根據用戶信息ID查詢用戶");
		return motoUserRepository.selectByPrimaryKey(userId);
	}

}
